package cn.iocoder.yudao.module.trade.enums.orderpostback;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

@RequiredArgsConstructor
@Getter
public enum OrderPostBackPayTypeEnum implements IntArrayValuable {

        PAY(1, "支付"),
        REFUND(2, "退款"),
        UN_PAY(3, "待支付");

        public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(OrderPostBackPayTypeEnum::getType).toArray();
        /**
         * 类型
         */
        private final Integer type;
        /**
         * 类型名
         */
        private final String name;


        @Override
        public int[] array() {
            return ARRAYS;
        }
}
